﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Armor
		Group                          = ArmorPlates
		Size                           = Small
		Module                         = invigor i light armor plate prototype
		CpuUsage                       = 1.00 TF
		ReactorUsage                   = 13.00 RP
		Type                           = Passive
		Slot                           = Legs
		TechnologicalLevel             = T3P
		Mass                           = 270.00 kg
		PackedVolume                   = 0.50 U
		Volume                         = 1.00 U
		Armor                          = 325 HP
		DemobilizerResistance          = 16.00 %
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Invigor I. light armor plate prototype module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:53</remarks>
    public sealed class InvigorILightArmorPlatePrototype : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="InvigorILightArmorPlatePrototype"/> class.
        /// </summary>
        public InvigorILightArmorPlatePrototype()
            : base(
            "Invigor I. light armor plate prototype",
            "",
            ModuleMetaGroupsEnum.Armor,
            ModuleGroupsEnum.ArmorPlates,
            TechnologyLevelsEnum.Level3|TechnologyLevelsEnum.Prototype,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(ArmorModuleCpuUsage<double>),1.00),
				new LazyFeature(typeof(ArmorModuleReactorUsage<double>),13.00),
				new LazyFeature(typeof(ModuleMass<double>),270.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 270.00 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.ArmorAmount, 325 ){ Unit = UnitsEnum.Hitpoints, DisplayName = "Armor amount" },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.DemobilizerResistance, 0.16 ){ Unit = UnitsEnum.Percentage, DisplayName = "Demobilizer resistance" }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Legs; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}